import type { NvCrudOption } from '@/crud/types'
import type { NvFormInst } from '@/form/types'
import type { Size } from '@/types'

export interface Props {
  option: NvCrudOption
  size: Size
}
export interface Emits {
  (e: 'search'): void
}

export interface Expose {
  search: () => Promise<void> | undefined
  clear: () => void
  toggleCollapse: () => void
  validate: NvFormInst['validate']
  restoreValidation: () => void
}
